<?php

    if (!defined('BASEPATH'))
        exit('No direct script access allowed');



    if (!function_exists('search_title')) {

        function search_title() {
            $acctype = isset($_GET['acc_type']) ? $_GET['acc_type'] : 'empty';

            switch ($acctype) {
                case 'appartment':
                case 'apartment':
                    $restitle = lang('title-search_private');
                    break;
                case 'hotel':
                    $restitle = lang('title-search_hotel');
                    break;
                case 'authentic accommodation':
                    $restitle = lang('title-search_authentic');
                    break;
                case 'youth hostel':
                    $restitle = lang('title-search_hostel');
                    break;
                case 'houses with pool':
                    $restitle = lang('title-search_villa');
                    break;
                case 'empty':
                    $restitle = lang('title-search_default');
                    break;
                default :
                    $restitle = lang('title-search_default');
            }

            return $restitle;
        }

    }

    if (!function_exists('search_description')) {

        function search_description() {
            $acctype = isset($_GET['acc_type']) ? $_GET['acc_type'] : 'empty';

            switch ($acctype) {
                case 'appartment':
                case 'apartment':
                    $restitle = lang('description-search_private');
                    break;
                case 'hotel':
                    $restitle = lang('description-search_hotel');
                    break;
                case 'authentic accommodation':
                    $restitle = lang('description-search_authentic');
                    break;
                case 'youth hostel':
                    $restitle = lang('description-search_hostel');
                    break;
                case 'empty':
                    $restitle = lang('description-search_default');
                    break;
                default :
                    $restitle = lang('description-search_default');
            }

            return $restitle;
        }

    }

    if (!function_exists('search_h1')) {

        function search_h1() {
            $acctype = isset($_GET['acc_type']) ? $_GET['acc_type'] : 'empty';

            switch ($acctype) {
                case 'appartment':
                case 'apartment':
                    $restitle = lang('res.title_private');
                    break;
                case 'hotel':
                    $restitle = lang('res.title_hotel');
                    break;
                case 'authentic accommodation':
                    $restitle = lang('res.title_authentic');
                    break;
                case 'youth hostel':
                    $restitle = lang('res.title_hostel');
                    break;
                case 'houses with pool':
                    $restitle = lang('title-search_villa');
                    break;
                case 'empty':
                    $restitle = lang('res.title_default');
                    break;
                default :
                    $restitle = lang('res.title_default');
            }

            return $restitle;
        }

    }